<?php
/**
 * @package    Tourstart
 * @subpackage Tests
 * @author     Mike Bevz <mike.bevz@data2people.com>
 * @license    The BSD License http://data2people.com/license.txt
 * @version    SVN: $Id: AllTests.php 14 2008-12-01 23:02:54Z michael.bevz $
 *
 */
if (!defined('PHPUnit_MAIN_METHOD')) {
    define('PHPUnit_MAIN_METHOD', 'Model_AllTests::main');
}

ini_set('apc.enabled', '0');

require_once dirname(__FILE__).'/../testsConfig.php';

require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

/**
 * Tests suits to include
 */
require_once dirname(__FILE__).'/CloudTests.php';
require_once dirname(__FILE__).'/FeedTests.php';
require_once dirname(__FILE__).'/WordTests.php';
require_once dirname(__FILE__).'/NewsTests.php';
require_once dirname(__FILE__).'/PhraseTests.php';
require_once dirname(__FILE__).'/TagTests.php';

/**
 * Setup front controller
 */

/**
 * All Tourstart_Domain tests runner
 */
class Model_AllTests {

    public static function main() {
        PHPUnit_TextUI_TestRunner::run(self::suite());
    }

    public static function suite() {
        $suite = new PHPUnit_Framework_TestSuite('Model Tests');
        $suite->addTestSuite('CloudTests');
        $suite->addTestSuite('PhraseTests');
        $suite->addTestSuite('NewsTests');
        $suite->addTestSuite('TagTests');
        $suite->addTestSuite('WordTests');
        $suite->addTestSuite('FeedTests');
	
        return $suite;
    }
}

if (PHPUnit_MAIN_METHOD == 'Model_AllTests::main') {
    Model_AllTests::main();
}